/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates;

/**
 *
 * @author Robot
 */
public class ButtonToggle
{
    public boolean toggle;
    private boolean buttonToggle;
    
    public ButtonToggle(boolean onOff, boolean buttonOnOff)
    {
        toggle = onOff;
        buttonToggle = buttonOnOff;      
    }
    
    public void ResetButton()
    {
        buttonToggle = false;
    }
    
    public void SetToggle()
    {       
        if (buttonToggle == false)
        {
            buttonToggle = true;
            toggle = !toggle;            
        }
    }
};